<?php 
/* SVN FILE: $Id$ */
/* ProfesionalPrevision Test cases generated on: 2009-12-06 01:12:06 : 1260077406*/
App::import('Model', 'ProfesionalPrevision');

class ProfesionalPrevisionTestCase extends CakeTestCase {
	var $ProfesionalPrevision = null;
	var $fixtures = array('app.profesional_prevision', 'app.profesional', 'app.prevision');

	function startTest() {
		$this->ProfesionalPrevision =& ClassRegistry::init('ProfesionalPrevision');
	}

	function testProfesionalPrevisionInstance() {
		$this->assertTrue(is_a($this->ProfesionalPrevision, 'ProfesionalPrevision'));
	}

	function testProfesionalPrevisionFind() {
		$this->ProfesionalPrevision->recursive = -1;
		$results = $this->ProfesionalPrevision->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('ProfesionalPrevision' => array(
			'profesional_id'  => 1,
			'prevision_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>